<template>
  <div>
    <div class="hander">
      <div class="hander-content">
        <div class="hander_info">
          <div class="avitar" @click="$router.push('/info')">
            <img :src="list.avatar" alt="" />
            <span class="icon iconfont">&#xe615;</span>
          </div>
          <div class="phone">
            <p>{{ list.nickname }}</p>
            <van-icon name="edit" />
          </div>
          <div class="right">去约课</div>
        </div>
        <div class="hander_mine">
          <ul>
            <li>
              <p class="q1">{{ list.courses }}</p>
              <p class="q2">我的特色课</p>
              <p class="q3">已购特色课程的学习</p>
            </li>
            <li>
              <p class="q1">{{ list.integral }}</p>
              <p class="q2">一对一辅导</p>
              <p class="q3">我的一对一老师辅导</p>
            </li>
            <li>
              <p class="q1">{{ list.oto }}.00</p>
              <p class="q2">剩余学习币</p>
              <p class="q3">查看剩余学习币</p>
            </li>
          </ul>
        </div>
      </div>
    </div>
    <div class="box">
         <span class="icon iconfont">&#xe6db;</span>
         <p>邀请好友注册APP，享多重好礼<br>显示特惠，多邀多得</p>
         <van-icon name="arrow" class="wer"/>
    </div>
   <mines1/>
  </div>
</template>

<script>
    import mines1 from "./commponts/mines1.vue"
import { getUCenterInfo, userInfo } from "../request/http";
export default {
    components: {
        mines1,
    },
  data() {
    return {
      list: [],
    };
  },
  created() {
    userInfo().then((res) => {
      console.log(res);
    });
    getUCenterInfo().then((res) => {
      console.log(res);
      this.list = res.data;
    });
  },
};
</script>

<style lang="scss" scoped>
.hander {
  width: 100%;
  height: 5.813rem;
  background: url(../assets/lianx/user_bg.ab306a5c.png) no-repeat top;
  background-size: 100%;
  position: relative;
  .hander-content {
    position: absolute;
    width: 90%;
    height: 4.613rem;
    background: #fff;
    left: 0.48rem;
    top: 1.2rem;
    border-radius: 0.133rem;
    .hander_info {
      width: 95%;
      height: 1.867rem;
      padding-top: 0.267rem;
      margin-left: 0.4rem;
      display: -webkit-box;
      display: -webkit-flex;
      display: flex;
      -webkit-box-align: center;
      -webkit-align-items: center;
      align-items: center;
      -webkit-box-pack: justify;
      -webkit-justify-content: space-between;
      justify-content: space-between;
      .avitar {
        width: 1.333rem;
        height: 1.333rem;
        border: 1px solid #777;
        border-radius: 100%;
        overflow: hidden;
        img {
          width: 100%;
          height: 100%;
        }
        .icon {
          position: absolute;
          left: 1.467rem;
          right: 0;
          top: 0.293rem;
          color: rgb(255, 217, 0);
          width: 0.533rem;
          height: 0.533rem;
        }
      }
      .phone {
        width: 75%;
        float: left;
        font-size: 0.453rem;
        display: flex;
        align-items: center;
      }
      .right {
        position: absolute;
        right: 0;
        width: 1.467rem;
        height: 0.667rem;
        background: #eb6100;
        color: #fff;
        text-align: center;
        line-height: 0.667rem;
        border-top-left-radius: 0.213rem;
        border-bottom-left-radius: 0.213rem;
      }
    }
    .hander_mine {
      height: 2.133rem;
      width: 90%;
      margin: 0 auto;
      ul {
        list-style: none;
        display: flex;
        justify-content: center;
        align-items: center;
        li {
          border: 1px solid #f1f1f1;
          width: 32%;
          height: 100%;
          text-align: center;
          .q1 {
            color: #eb6100;
            font-size: 0.507rem;
          }
          .q2 {
            font-size: 0.4rem;
          }
          .q3 {
            line-height: 0.4rem;
            font-size: 0.32rem;
            color: #777;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
          }
        }
      }
    }
  }
}
.box {
  width: 90%;
  height: 1.173rem;
  border-radius: 50px;
  margin: 0.9rem auto;
  background-image: linear-gradient(
    to left,
    #eb6100,
    orange
  ); /* 默认方向自下向上 */
  background-size: 100%;
  font-size:20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: white;
  .icon{
    margin:0 50px ;
  }
  p{
    flex: 1;
  }
  .wer{
    margin-right: 50px;
    font-size: 30px;
  }
}
</style>